//
//  BCDatePickerController.h
//  Memo
//
//  Created by 李雪 on 16/3/6.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.//

#import <UIKit/UIKit.h>

typedef enum {
    PickerTypeDate,
    PickerTypeDateAndTime
} BCDatePickType;

@protocol BCDatePickerControllerDelegate;

@interface BCDatePickerController : UIViewController <UIPickerViewDataSource,UIPickerViewDelegate>
@property (assign,nonatomic)id<BCDatePickerControllerDelegate> delegate;
@property (strong,nonatomic) NSDate* date;
-(id)initTimeRangeFromDate:(NSDate*)beginTime   ToDate:(NSDate*)endTime WithType:(BCDatePickType)pickerType;
@end

@protocol BCDatePickerControllerDelegate <NSObject>

-(void)datePickerController:(BCDatePickerController*) datePickerController   FinishedWithSelectedDate:(NSDate*) selectedDate;

@end